﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="SES.CMS.Contact" Title="Untitled Page" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
    .txtnd
    {
    	margin-left:95px;
    }
    
    .txtTK
    {
    	width:150px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="itemcat">
        <div class="center-info">
                <asp:Label ID="lblInfo" runat="server"></asp:Label>            
        </div>
        <div class="mail" id="mail">
            <br />
            <asp:Label ID="Label2" Text="Tên người gửi:" Width="90px" runat="server"></asp:Label>
            <asp:TextBox ID="txtTen" runat="server" Width="320px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtTen" Display="Dynamic" 
                ErrorMessage="Bạn cần điền tên người gửi"></asp:RequiredFieldValidator>
            <br /><br />
            
            <asp:Label ID="Label1" Text="Tiêu đề:" Width="90px" runat="server"></asp:Label>
            <asp:TextBox ID="txtSub" runat="server" Width="320px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="txtSub" Display="Dynamic" 
                ErrorMessage="Cần nhập tên tiêu đề thư"></asp:RequiredFieldValidator>
            <br /><br />
            
            <asp:Label ID="Label6" Text="Email:" Width="90px" runat="server"></asp:Label>
            <asp:TextBox ID="txtEmail" runat="server" Width="320px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="*** Cần nhập Email" 
                 ValidationExpression="submitGrp" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Email không chính xác" Display="Dynamic"
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <br /><br />
            
                
            <asp:Label ID="Label7" Text="Số điện thoại:" Width="90px" runat="server"></asp:Label>
            <asp:TextBox ID="txtsdt" runat="server" Width="320px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="txtsdt" Display="Dynamic" 
                ErrorMessage="Cần nhập số điện thoại"></asp:RequiredFieldValidator>
            <br /><br />
 
            <asp:Label ID="Label3" Text="Nội dung" Width="90px" runat="server"></asp:Label><br />
            <asp:TextBox ID="txtND" runat="server" TextMode="MultiLine" Width="500px" Height="100px" CssClass="txtnd"></asp:TextBox>
            <br /><asp:Label ID="Label8" Text=" " Width="90px" runat="server"></asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                ControlToValidate="txtND" Display="Dynamic" ErrorMessage="Cần nhập nội dung"></asp:RequiredFieldValidator>
            <br />
                
            <div style="float:left; width:100%;">
                <div style="float:left;width:170px;">
                    <asp:Label ID="Label4" Text="Mã bảo vệ" Width="90px" runat="server"></asp:Label>
                    <asp:TextBox ID="txtbv" runat="server"  Width="70px" Height="20px" />
                </div>
                <div style="float:left;width:108px; height:31px; margin:0;padding:0;">
                    <cc1:CaptchaControl ID="ccJoin" runat="server" validateIntegratedModeConfiguration="false" CaptchaHeight="31" CaptchaWidth="90" CaptchaBackgroundNoise="Extreme" CaptchaLength="5" /><br />
                </div>
            </div><br /><br />
            <asp:Label ID="Label5" Text=" " Width="90px" runat="server"></asp:Label>
            
            <asp:Button ID="ButtonSend" OnClick="ButtonSend_Click" Width="75px" Text="Gửi" runat="server" CssClass="button" />
            <asp:Label ID="lbLoi" Text="" runat="server"></asp:Label>
        </div>
    </div>
</asp:Content>
